<template>
  <div id="app">
    <router-view />
    <!-- 重新登陆 -->
    <re-login></re-login>
    <!-- 我的信息 -->
    <my-info></my-info>
  </div>
</template>

<script>
import ReLogin from '@/components/reLogin'
import MyInfo from '@/components/MyInfo'
export default {
  name: 'App',
  components: {
    ReLogin,
    MyInfo
  },
  created() {
    // 获取本地存储的主题
    const type = localStorage.getItem('skin')
    // 设置主题
    window.document.documentElement.setAttribute( "data-theme", type || 'default');
  }
}
</script>
